<template>
	<view class="custom_nav_main">
		<image src="../../static/image/goBack.png" mode="" @click="handleGoBack"></image>
		{{navTitle}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		props: {
			navTitle: { // nav名称
				type: String,
				default: ''
			}
		},
		methods: {
			// 返回上一页
			handleGoBack() {
				uni.navigateBack()
			}
		},
		onLoad() {
		},
	}
</script>

<style lang="less" scoped>
	.custom_nav_main {
		padding: 0rpx 20rpx 0rpx 20rpx;
		color: #fff;
		font-size: 36rpx;
		text-align: center;
		font-weight: 500;
		height: 96rpx;
		line-height: 96rpx;
		image {
			width: 20rpx;
			height: 35rpx;
			float: left;
			margin-top: 30rpx;
			vertical-align: middle;
		}
	}
</style>
